package com.jyt.entities;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Description:   简单的excel的导出配置
 * @Author hugh.sun
 * @Date 2021/11/24 16:24
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@HeadRowHeight(value = 35) // 表头行高
@ContentRowHeight(value = 25) // 内容行高
@ColumnWidth(value = 50) // 列宽

public class Check {
    @ExcelProperty(value = {"检测报告","检测编号"})
    private int id;

    @ExcelProperty(value = {"检测报告","创建时间"})
    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    private Date createdate;

    @ExcelProperty(value = {"检测报告","检测部位"})
    private String part;

    @ExcelProperty(value = {"检测报告","图片地址"})
    private String address;

    @ExcelProperty(value = {"检测报告","检测质量"})
    private int status;
}
